import { request } from "@/utils/request";

/**
 * 获取消息列表
 * @returns {promise} Promise
 */
 export async function merchantMessageCenterList(data) {
  let res = await request(
    '/merchant/press/pagePress',
    data,{isHidenNotice: true}
  )
  return res;
}

/**
 * 修改消息状态
 * @returns {promise} Promise
 */
 export async function merchantMessageChangeStatus(data) {
  let res = await request(
    '/merchant/press/change',
    data,{isHidenNotice: true}
  )
  return res;
}
/**
 * 获取未读消息数量
 * @returns {promise} Promise
 */
export async function messageCenterUnreadNum(data) {
  let res = await request(
    '/merchant/press/getUnreadNum',
    data,
    {isHidenNotice: true}
  )
  return res;
}
/**
 * 全部已读消息
 * @returns {promise} Promise
 */
export async function messageCenterReadAll(data) {
  let res = await request(
    '/merchant/press/readAll',
    data,
    {isHidenNotice: true}
  )
  return res;
}